import { Router } from 'express';
import { getNotifications, markRead } from '../controllers/notification.controller';
import { authMiddleware } from '../middlewares/auth.middleware';

const router = Router();
router.use(authMiddleware);

router.get('/', getNotifications);
router.post('/:id/read', markRead);

export default router;
